package cn.wolfcode.demo.service.impl;

import cn.wolfcode.demo.domain.User;
import cn.wolfcode.demo.repository.UserRepository;
import cn.wolfcode.demo.service.MongoUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MongoUserServiceImpl implements MongoUserService {
    @Autowired
    private UserRepository userRepository;
    @Override
    public void save(User user) {
        userRepository.save(user);
    }
}
